import { get,post } from './axios'


// 获取会员列表
async  function getMemberList(data) {
    const url = `/admin/member/list`
    const result = await get(url, data)
    return result
}

// 获取城市列表
async  function getCityList(data) {
    const url = `/admin/city/list/`
    const result = await get(url, data)
    return result
}

// 设置/取消,黑名单,删除
async function SetOrCancelBlacklist(data) {
    const url = `/admin/member/batchedit`
    const result = await post(url, data)
    return result
}

// 编辑会员 基本信息
async function editMemberInfo(data) {
    const url = `/admin/member/edit`
    const result = await post(url, data)
    return result
}

// 获取品牌列表
async function getBrandList(data) {
    const url = `/admin/brand/list`
    const result = await get(url, data)
    return result
}

// 获取品牌列表
async function getStoreList(data) {
    const url = `/admin/store/list`
    const result = await post(url, data)
    return result
}

export {
    getMemberList,
    SetOrCancelBlacklist,
    editMemberInfo,
    getCityList,
    getBrandList,
    getStoreList
}
